<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="http://localhost/ly/shop/Tpl/shopping-tp/css/order.css" />
	<script type='text/javascript' src='http://localhost/ly/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
    <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/ly/shop';
		WEB = 'http://localhost/ly/shop/index.php';
		URL = 'http://localhost/ly/shop/index.php/Order/index.html';
		HDPHP = 'http://localhost/ly/HDPHP/hdphp';
		HDPHPDATA = 'http://localhost/ly/HDPHP/hdphp/Data';
		HDPHPTPL = 'http://localhost/ly/HDPHP/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/ly/HDPHP/hdphp/Extend';
		APP = 'http://localhost/ly/shop/index.php';
		CONTROL = 'http://localhost/ly/shop/index.php/Order';
		METH = 'http://localhost/ly/shop/index.php/Order/index';
		TPL = 'http://localhost/ly/shop/Tpl/shopping-tp';
		CONTROLTPL = 'http://localhost/ly/shop/Tpl/shopping-tp/Order';
		STATIC = 'http://localhost/ly/shop/Tpl/shopping-tp/Static';
		PUBLIC = 'http://localhost/ly/shop/Tpl/shopping-tp/Public';
		COMMON = 'http://localhost/ly/shop/Common';
		TEMPLATE = 'http://localhost/ly/shop/Template';
</script>
	<script  type="text/javascript" src=".http://localhost/ly/shop/Tpl/shopping-tp/js/index.js"></script>
	<title>我的购物车 - 色丰衣家</title>
</head>
<body>
	<div id="ly">
		<div id="header">
			<div class="top_box">
				<div class="top_bar">
					<ul class="top_bar_left">
						<li class="title_shop">
							<a class="title_shop_is" href="<?php echo U('Index/index');?>">色丰衣家</a>
						</li>
					</ul>
					<ul class="top_bar_right">
						<?php if($_SESSION['user']['uid']){ ; ?>
						<li class="login1">
							<a class="login_is2">欢迎&nbsp;<?php echo $_SESSION['user']['username'] ; ?></a>
						</li>
						<li class="reg">
							<a class="reg_is" href="<?php echo U('Login/out');?>">退出</a>
						</li>
						<?php }else{; ?>
						<li class="login">
							<a class="login_is" href="<?php echo U('Login/login');?>">登陆</a>
						</li>
						<li class="reg">
							<a class="reg_is" href="">注册</a>
						</li>
						<?php } ;?>
						<li class="my_bb">
							<a class="my_bb_is" href="">
								我的宝贝
								<i class="jt"></i>								
							</a>
							<ul class="my_bb_list">
								<li><a  href="">购买的宝贝</a></li>
								<li><a  href="">收藏的宝贝</a></li>
								<li><a  href="">收藏的店铺</a></li>
							</ul>
						</li>
						<li class="help">
							<a class="help_is" href="">
								帮助
								<i class="jt"></i>
							</a>
							<ul class="help_list">
								<li><a  href="">帮助中心</a></li>
								<li><a  href="">客服专区</a></li>
								<li><a  href="">交易安全</a></li>
								<li><a  href="">货到付款</a></li>
								<li><a  href="">维权中心</a></li>
							</ul>
						</li>
						<li class="sq">
							<a href="">社区</a>
						</li>	
						<li class="dy_center">
							<a href="">订阅中心</a>
						</li>					
					</ul>
				</div>				
			</div>

		</div>
		<div class="empty15"></div>
		<div id="body">
			<div class="body_h">
				<div class="logo">
					<img src="http://localhost/ly/shop/Tpl/shopping-tp/images/logo.jpg" alt="">
				</div>
				<div class="info2">
					<ul>
						<li>1.我的购物车</li>
						<li>2.填写核对订单信息</li>
						<li>3.成功提交订单</li>
					</ul>
				</div>
			</div>
			<form action="<?php echo U(add);?>" method='post'>
			<div class="orderBox">
				<div class="order-hd">
					<h2></h2>
				</div>
				<div class='order-info'>
					<div class='step-1'>
						<div class='step-1-hd'>
							<strong>收货人信息</strong>
						</div>
						<div class='step-1-info'>
							<ul>
								<li>
									<span>收货人：</span><input class="name" name="consignee" type="text">
								</li>
								<li>
									<span>详细地址：</span><input class="address" name="address" type="text">
								</li>
								<li>
									<span>手机号码：</span><input class="phone" name="phone" type="text">
									<em>或</em>
									<span>固定电话：</span><input class="phone" name="tel" type="text">
								</li>
								
								<li>
									<span>邮箱：</span><input class="email" name="email" type="text">
									<em>用来接收订单提醒邮件，便于您及时了解订单状态</em>
								</li>
							</ul>
						</div>
					</div>
					<div class="step-2">
						<div class='step-2-hd'>
							<strong>支付及配送方式</strong>
						</div>
						<div class='step-2-info'>
							<span class="sp">货到付款</span>
							<span class="sp">全天候配送</span>
						</div>
					</div>
					<div class="step-3">
						<div class='step-3-hd'>
							<strong>发票信息</strong>
						</div>
						<div class='step-3-info'>
							<span class="sp">普通发票</span>
						</div>
					</div>
					<div class="step-4">
						<div class='step-4-hd'>
							<strong>商品清单</strong>
						</div>
						<div class='step-4-info'>
							<div class="shopBox">
								<table>
									<thead>
										 <tr>
										 	<td class="nb1">商品</td>
										 	<td class="nb2">数量</td>
										 	<td class="nb3">价格</td>
										 	<td class="nb4">库存状态</td>
										 </tr>
									</thead>
									<tbody>
										<?php $hd["list"]["n"]["total"]=0;if(isset($SESSION['cart']['goods']) && !empty($SESSION['cart']['goods'])):$_id_n=0;$_index_n=0;$lastn=min(1000,count($SESSION['cart']['goods']));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($SESSION['cart']['goods'],0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

										 <tr class="list">
										 	<td ><?php echo $n['gname'];?></td>
										 	<td >x&nbsp<?php echo $n['gcount'];?></td>
										 	<td ><?php echo $n['price'];?></td>
										 	<td >现货</td>
										 </tr>
										<?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
									</tbody>
									<tfoot>
										<tr>
											<td colspan='4'>
												<input type="hidden" name='total_price' vuale="<?php echo $SESSION['cart']['total_price'];?>">
												<input class="btn" type="submit" value="">
												<span class="allPrice">
													应付总额：
													<strong id="stoo">
														￥<?php echo $SESSION['cart']['total_price'];?>
													</strong>
													元
												</span>												
											</td>
										</tr>
									</tfoot>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			</form>
		</div>
		<div class="empty15"></div>
		<div id="footer">
			<div class="footer_black">
				<div class="footer_black_left"><a href=""></a></div>
				<div class="footer_black_mid"><a href=""></a></div>
				<div class="footer_black_right"><a href=""></a></div>
			</div>
			<div class="empty15"></div>
			<div class="service_list">
				<div class="inner">
					<div class="inner_is tiro">
						<dl>
							<dt>新手指南</dt>
							<dd>
								<p><a href="">新人购物指南</a></p>
								<p><a href="">商户服务平台</a></p>
								<p><a href="">消费者维权中心</a></p>
							</dd>
						</dl>
					</div>
					<div class="inner_is ensure">
						<dl>
							<dt>购物保障</dt>
							<dd>
								<p><a href="">全场正品</a></p>
								<p><a href="">先行赔付</a></p>
								<p><a href="">快速发货</a></p>
								<p><a href="">7天免邮包退</a></p>
							</dd>
						</dl>
					</div>
					<div class="inner_is pay">
						<dl>
							<dt>支付方式</dt>
							<dd>
								<p><a href="">货到付款</a></p>
								<p><a href="">一点通支付</a></p>
								<p><a href="">信用卡支付</a></p>
								<p><a href="">借记卡支付</a></p>
								<p><a href="">财付通余额支付</a></p>
							</dd>
						</dl>
					</div>
					<div class="inner_is service">
						<dl>
							<dt>服务中心</dt>
							<dd>
								<p><a href="">网购规则平台</a></p>
								<p><a href="">如何加入色丰衣家</a></p>
								<p><a href="">加入色丰衣家外部团队</a></p>
							</dd>
						</dl>
					</div>
				</div>
			</div>
			<div class="empty15"></div>
			<div class="footer_bar">
				<div class="inner_bar">
					<div class="link">
						<p>Copyright © 2013 色丰衣家 • SeFeng Online Shopping Mall</p>
						<p>网站的创意，素材来源网络 丨 Designer by - 李晔</p>
					</div>
				</div>		
			</div>
		</div>
	</div>
</body>
</html>